package com.ruoyi.voucher.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import javax.validation.constraints.NotBlank;

/**
 * 科目分类对象 subject_type
 * 
 * @author sfk
 * @date 2025-02-26
 */
public class SubjectType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 类型ID */
    @Excel(name = "类型ID")
    private Long typeId;

    /** 类型名称（资产/负债等） */
    @Excel(name = "类型名称", readConverterExp = "资=产/负债等")
    @NotBlank(message = "类型名称不能为空")
    private String typeName;

    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }
    public void setTypeName(String typeName) 
    {
        this.typeName = typeName;
    }

    public String getTypeName() 
    {
        return typeName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("typeId", getTypeId())
            .append("typeName", getTypeName())
            .toString();
    }
}
